package com.fzhucc.utils;

import com.alibaba.fastjson.JSON;
import com.fzhucc.modules.expert.domain.Expert;
import com.fzhucc.modules.expert.domain.dto.ExpertDto;
import com.fzhucc.modules.expert.domain.dto.ExpertSciDto;
import org.jeecg.pms.entity.PmsProject;

import java.util.List;

public class ParseJsonArray {
    public List<PmsProject> parseJsonArray(String mapList){
        List<PmsProject> pmsProjects = JSON.parseArray(mapList, PmsProject.class);
        return pmsProjects;
    }

    /*public List<ExpertSciDto> parseJsonExpertArray(String mapList){
        List<ExpertSciDto> list = JSON.parseArray(mapList, ExpertSciDto.class);
        return list;
    }*/

    public List<Expert> parseJsonExpertArray(String mapList){
        List<Expert> list = JSON.parseArray(mapList, Expert.class);
        return list;
    }
}
